#! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Teny

from django.urls import path
from django02 import views
urlpatterns = [
    path('test/', views.test),
    path('delete/',views.delete),

    # 主页
    path('index/',views.index),

    # 部门管理
    path('depart/',views.depart_list),
    path('depart/add/',views.depart_add),
    path('depart/delete/',views.depart_delete),
    path('depart/<int:nid>/edit/',views.depart_edit),

    # 人员管理
    path('users/',views.user_list),
    path('users/add/',views.user_add),
    path('users/<int:nid>/edit/',views.user_edit),
    path('users/<int:nid>/delete/',views.user_delete),

    # 靓号管理
    path('bettry/',views.bettry_list),
    path('bettry/add/',views.bettry_add),
    path('bettry/<int:nid>/edit/',views.bettry_edit),
    path('bettry/<int:nid>/delete/',views.bettry_delete),
]